package com.mcf.xiaolinju.service.impl;

import com.mcf.xiaolinju.entity.TbTown;
import com.mcf.xiaolinju.mapper.TbTownMapper;
import com.mcf.xiaolinju.service.ITbTownService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author mcf
 * @since 2022-01-04
 */
@Service
public class TbTownServiceImpl extends ServiceImpl<TbTownMapper, TbTown> implements ITbTownService {
    @Resource
    TbTownMapper tbTownMapper;
    //根据城市id查询地区
    public List<TbTown> gettown(int cityid) {
        return tbTownMapper.gettown(cityid);

    }

}
